<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<div>
			<form id="submit_form" method="post" action="http://insurance.axinfu.com/paycenter/gateway_web">
				<input type="hidden" name="json" id="json" value='' />
				<input type="hidden" name="signature" id="signature" value="" />
			</form>
		</div>
	</body>
	<script>
		// function getParam(path, name) {
		// 	var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
		// 	if (reg.test(path)) {
		// 		return unescape(RegExp.$2.replace(/\+/g, " "));
		// 	} else {
		// 		return "";
		// 	}
		// }
		function getUrlParams(url) {
			const urlParams = new URLSearchParams(url.split('?')[1]);
			const params = {};
			for (let param of urlParams.entries()) {
				params[param[0]] = param[1];
			}
			return params;
		}

		let url = window.location.href
		// console.log(url);
		let obj = getUrlParams(url)
		let json = obj.json
		let signature = obj.signature
		// console.log(getUrlParams(url));
		//console.log(json);
		//console.log(signature);
		document.getElementById('json').value = json
		document.getElementById('signature').value = signature
		document.forms[0].submit();
	</script>
	<!-- //或后端提交 -->
	<!-- response.setContentType("text/html;charset=UTF-8");
	response.getWriter().write(form表单); -->
</html>